<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <body>

        <ui:composition template="./LogInTemplate.xhtml">
            <ui:define name="top">
                <center>
                    <p:panel>
                        <h1>Welcome to: "Prodigium" Music School</h1>
                        <h:form>
                            <p:dock position="top">  
                                <p:menuitem value="Student's" icon="./img/student.png" action="StudentList"/>  
                                <p:menuitem value="Schoralship's" icon="./img/sc.png" action="Scholarshiplist"/>  
                                <p:menuitem value="Course's " icon="./img/course.png" action="CourseList"/>  
                                <p:menuitem value="User's" icon="./img/student.png" action="userList"/>
                                <p:menuitem value="Assign Scholarship" icon="./img/sc.png" action="AssignScholarshipList"/>  
                                <p:menuitem value="Logout" icon="./img/tache.png" action="Login"/>  
                            </p:dock>                             
                        </h:form>
                    </p:panel>
                </center>
                <br/>
                <br/>
                <br/>
            </ui:define>


            <ui:define name="content">
                <f:view>
                    <p:panel>
                        <h:form>
                            <center>
                                <h:panelGrid columns="2">
                                    <h1 align="center">
                                        "MUSIC,it's a feeling that we have in common<br/>
                                        our students and teachers...<br/>
                                        <br/>
                                        We don't TEACH how to play an instrument,<br/>
                                        we teach how to put your heart and your FEELINGS<br/>
                                        on paper, in a beautiful song, and<br/>
                                        IN YOUR DAILY LIFE..... "

                                    </h1>    
                                    <h3 align="right" style="font-style: italic">
                                        "PRODIGUIM"
                                    </h3>
                                    <p:panel>
                                        <p:imageSwitch effect="fade">
                                            <ui:repeat value="#{imageBean.images}" var="image">
                                                <p:graphicImage value="./img/#{image}" height="400" width="700"/>
                                            </ui:repeat>
                                        </p:imageSwitch>
                                    </p:panel>

                                </h:panelGrid>
                            </center>
                        </h:form>
                    </p:panel>
                </f:view>                
            </ui:define>

        </ui:composition>

    </body>
</html>
